package com.csxy.six.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class LostItemDTO {
    @NotBlank(message = "标题不能为空")
    private String title;

    @NotBlank(message = "描述不能为空")
    private String description;

    @NotNull(message = "分类ID不能为空")
    private Integer lfCatId;

    @NotNull(message = "丢失时间不能为空")
    private LocalDateTime lostTime;

    @NotBlank(message = "丢失地点不能为空")
    private String location;

    @NotNull(message = "发布者ID不能为空")
    private Long publisherId;

    private String contactInfo;
    private String imageUrl;
}